package com.hzsoft.sys.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hzsoft.sys.entity.SysDept;
import com.hzsoft.sys.mapper.SysDeptMapper;
import com.hzsoft.sys.service.SysDeptService;


@Service("sysDeptService")
public class SysDeptServiceImpl implements SysDeptService {

	private SysDeptMapper sysDeptMapper;
	
	public SysDeptMapper getSysDeptMapper() {
		return sysDeptMapper;
	}
	@Autowired
	public void setSysDeptMapper(SysDeptMapper sysDeptMapper) {
		this.sysDeptMapper = sysDeptMapper;
	}
	public int deleteByPrimaryKey(String deptId) {
		// TODO Auto-generated method stub
		return sysDeptMapper.deleteByPrimaryKey(deptId);
	}
	public int insert(SysDept record) {
		// TODO Auto-generated method stub
		return sysDeptMapper.insert(record);
	}
	public int insertSelective(SysDept record) {
		// TODO Auto-generated method stub
		return sysDeptMapper.insertSelective(record);
	}
	public SysDept selectByPrimaryKey(String deptId) {
		// TODO Auto-generated method stub
		return sysDeptMapper.selectByPrimaryKey(deptId);
	}
	public int updateByPrimaryKeySelective(SysDept record) {
		// TODO Auto-generated method stub
		return sysDeptMapper.updateByPrimaryKeySelective(record);
	}
	public int updateByPrimaryKey(SysDept record) {
		// TODO Auto-generated method stub
		return sysDeptMapper.updateByPrimaryKey(record);
	}
	public List<SysDept> listPageDept(SysDept dept) {
		// TODO Auto-generated method stub
		return sysDeptMapper.listPageDept(dept);
	}

	
}
